<template>
  <header>
    <p>
      <!-- <img src="@/assets/images/logo.png" alt="" /> -->
      悠韵茶香
    </p>
    <div class="search" @click="goSearch">
      <i class="iconfont icon-fangdajing"></i>
      <span>搜索商品名称</span>
    </div>
    <div class="kefu">
      <i class="iconfont icon-kefu"></i>
    </div>
  </header>
</template>

<script>
export default {
  methods: {
    goSearch() {
      this.$router.push('/search')
    }
  }

}
</script>

<style scoped>
header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 1.2rem;
  background-color: #7cda50;
}
header p {
  padding: 0.2rem 0.1rem 0.1rem 0.1rem;
  line-height: 1.2rem;
  font-size: 0.7rem;
  font-family: "STXingkai";
}
.search {
  display: flex;
  align-items: center;
  width: 5.56rem;
  height: 0.8rem;
  background-color: #ffffff;
  border-radius: 12px;
}
.search i {
  padding: 0 0.16rem;
}
.search span {
  font-size: 0.373333rem;
  color: #666666;
}
.kefu i {
  font-size: 0.96rem;
  color: #ffffff;
}
</style>